<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath }"/>
<%@taglib  prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<title>固定资产管理系统</title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta content="width=device-width, initial-scale=1.0" name="viewport" />
	<meta content="" name="description" />
	<meta content="" name="author" />
	<meta name="MobileOptimized" content="320">
	<!-- BEGIN GLOBAL MANDATORY STYLES -->          
	<link href="${ctx}/assets/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
	<link href="${ctx}/assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
	<link href="${ctx}/assets/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css"/>
	<!-- END GLOBAL MANDATORY STYLES -->
	<!-- BEGIN THEME STYLES --> 
	<link href="${ctx}/assets/css/style-metronic.css" rel="stylesheet" type="text/css"/>
	<link href="${ctx}/assets/css/style.css" rel="stylesheet" type="text/css"/>
	<link href="${ctx}/assets/css/style-responsive.css" rel="stylesheet" type="text/css"/>
	<link href="${ctx}/assets/css/plugins.css" rel="stylesheet" type="text/css"/>
	<link href="${ctx}/assets/css/themes/light.css" rel="stylesheet" type="text/css"/>
	<link href="${ctx}/assets/css/custom.css" rel="stylesheet" type="text/css"/>
	<link rel="stylesheet" type="text/css" href="${ctx}/assets/plugins/bootstrap-daterangepicker/daterangepicker-bs3.css" />
	<link rel="stylesheet" type="text/css" href="${ctx}/assets/plugins/bootstrap-datetimepicker/css/datetimepicker.css" />
	<link rel="stylesheet" type="text/css" href="${ctx}/assets/plugins/jquery-multi-select/css/multi-select.css" />
	<link href="${ctx }/css/custom.css" rel="stylesheet" type="text/css"/>

	<link href="${ctx}/frontend/assets/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
   
   	<link href="${ctx}/frontend/assets/css/pages/portfolio.css" rel="stylesheet" type="text/css"/>

	<link href="${ctx}/frontend/assets/plugins/fancybox/source/jquery.fancybox.css" rel="stylesheet" />              
    <link rel="stylesheet" href="${ctx}/frontend/assets/plugins/revolution_slider/css/rs-style.css" media="screen">
    <link rel="stylesheet" href="${ctx}/frontend/assets/plugins/revolution_slider/rs-plugin/css/settings.css" media="screen"> 
    <link href="${ctx}/frontend/assets/plugins/bxslider/jquery.bxslider.css" rel="stylesheet" />       
	<!-- END THEME STYLES -->	
	<link rel="shortcut icon" href="favicon.ico" />
</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<body class="page-header-fixed page-full-width">
	<!-- BEGIN HEADER -->   
	<%@include file="../include/header.jsp" %>
	<!-- END HEADER -->
	
	<!-- BEGIN CONTAINER -->
	<div class="page-container">
		<div class="page-content">
			
			<!-- END BEGIN STYLE CUSTOMIZER -->            
			<!-- BEGIN PAGE HEADER-->
			<div class="row">
				<div class="col-md-12">
					<!-- BEGIN PAGE TITLE & BREADCRUMB-->
					<h3 class="page-title">
						物资详情
					</h3>
					
					<!-- END PAGE TITLE & BREADCRUMB-->
				</div>
			</div>
			<!-- END PAGE HEADER-->
			<!-- BEGIN PAGE CONTENT-->          
			<div class="row">
				<div class="col-md-12">
					
					<!-- BEGIN SAMPLE TABLE PORTLET-->
					<div class="portlet box green">
						<div class="portlet-title">
							<div class="caption"><i class="fa fa-cogs"></i>物资详细信息</div>
							<div class="tools">
								<a href="javascript:;" class="collapse"></a>
							</div>
						</div>
						<div class="portlet-body flip-scroll">							
							<form class="form-horizontal" role="form">
								<div style="text-align:right;">
									<c:if test="${wuZi.panDian==0 and (wuZi.shiYongZT.id==102 or wuZi.shiYongZT.id==108) }">
									<a class="btn blue" href="${ctx }/wuzi/weiXiu.do?id=${wuZi.id}" target="_self">申请维修</a>
									<a class="btn blue" href="${ctx }/wuzi/yiJiaoSQ.do?id=${wuZi.id}" target="_self">移交</a>
									<a class="btn blue" href="${ctx }/wuzi/tuiHuiSQ.do?id=${wuZi.id}" target="_self">退还</a>
									<a class="btn blue" href="${ctx }/wuzi/baoFei.do?id=${wuZi.id}" target="_self">申请报废</a>
									</c:if>
									<shiro:hasRole name="固资管理员">
										<c:if test="${!empty wuZi.ziChanBH }"><a class="btn blue" id="daYinTiaoMa">打印条码</a></c:if>
										<a class="btn blue" href="${ctx }/wuzi/wuZiXiuGai.do?id=${wuZi.id}">修改</a>
									</shiro:hasRole>
									<a class="btn default" onclick="window.close()">关闭</a>
								</div>
								<div class="row">									
									<div class="col-md-6">										
										<div class="form-group">
											<label class="col-md-4 control-label">购买日期</label>
											<label class="col-md-8 control-label" style="text-align:left;"><fmt:formatDate value="${wuZi.gouMaiRQ }" pattern="yyyy-MM-dd"/></label>
										</div>
										<div class="form-group">
											<label class="col-md-4 control-label">物资类型</label>
											<label class="col-md-8 control-label" style="text-align:left;">
												<c:choose>
												<c:when test="${wuZi.wuZiLX==1 }">
													固定资产
												</c:when>
												<c:when test="${wuZi.wuZiLX==2 }">
													低值易耗品
												</c:when>
												</c:choose>
											</label>
										</div>
										<div class="form-group">
											<label class="col-md-4 control-label">物料编码</label>
											<label class="col-md-8 control-label" style="text-align:left;">${wuZi.wuLiaoBM }</label>
										</div>

										<c:if test="${shengQing.huanJie.id > 105}">
										<div class="form-group">
											<label class="col-md-4 control-label">资产编号</label>
											<label class="col-md-8 control-label" style="text-align:left;">${wuZi.ziChanBH }</label>
										</div>
										<div class="form-group">
											<label class="col-md-4 control-label">物资名称</label>
											<label class="col-md-8 control-label" style="text-align:left;">${wuZi.wuZiMC }</label>
										</div>
										<div class="form-group">
											<label class="col-md-4 control-label">物资类别</label>
											<label class="col-md-8 control-label" style="text-align:left;">${wuZi.wuZiLB.leibieMC }</label>
										</div>
										<div class="form-group">
											<label class="col-md-4 control-label">物资品牌</label>
											<label class="col-md-8 control-label" style="text-align:left;">${wuZi.pinPai }</label>
										</div>

										<div class="form-group">
											<label class="col-md-4 control-label">规格型号</label>
											<label class="col-md-8 control-label" style="text-align:left;">${wuZi.guiGeXH }</label>
										</div>
										</c:if>
										<div class="form-group">
											<label class="col-md-4 control-label">产品序列号</label>
											<label class="col-md-8 control-label" style="text-align:left;">${wuZi.chanPinXLH }</label>
										</div>

										<div class="form-group">
											<label class="col-md-4 control-label">资产编码(财务)</label>
											<label class="col-md-8 control-label" style="text-align:left;">${wuZi.ziChanBM }</label>
										</div>
										<div class="form-group">
											<label class="col-md-4 control-label">增加方式</label>
											<label class="col-md-8 control-label" style="text-align:left;">${wuZi.zengJiaFS }</label>
										</div>
										<div class="form-group">
											<label class="col-md-4 control-label">物资原值</label>
											<label class="col-md-2 control-label" style="text-align:left;"><fmt:formatNumber type="number" value="${wuZi.wuZiYZ }" pattern="0.00" maxFractionDigits="2"/></label>
											<label class="col-md-2 control-label" style="text-align:left;">${wuZi.biZhong.biZhongMC }</label>
										</div>
										<%--<div class="form-group">
											<label class="col-md-4 control-label">物资净值</label>
											<label class="col-md-2 control-label" style="text-align:left;"><fmt:formatNumber type="number" value="${wuZi.wuZiJingZhi }" pattern="0.00" maxFractionDigits="2"/></label>
										</div>
										<div class="form-group">
											<label class="col-md-4 control-label">预计净残值率</label>											
											<label class="col-md-1 control-label" style="text-align:left;">${wuZi.jingCanZhiLv }</label>
											<label class="col-md-1 control-label" style="text-align:left;">%</label>
										</div>--%>
									</div>
									<div class="col-md-5 front-carousel" style="margin-top:30px;">
										<div id="myCarousel" class="carousel slide">
											<!-- Carousel items -->
											<div class="carousel-inner">
												<c:forEach items="${wuZi.tuPians }" var="u" varStatus="id">
													<c:choose>
														<c:when test="${id.index==0 }">
															<div class="active item">
																<img src="${ctx }${u.xiangDuiLJ}/${u.wenJianM}" alt="">												
															</div>
														</c:when>
														<c:otherwise>
															<div class="item">
																<img src="${ctx }${u.xiangDuiLJ}/${u.wenJianM}" alt="">												
															</div>
														</c:otherwise>
													</c:choose>
												</c:forEach>
											</div>
											<!-- Carousel nav -->
											<a class="carousel-control left" href="#myCarousel" data-slide="prev">
												<i class="fa fa-angle-left"></i>
											</a>
											<a class="carousel-control right" href="#myCarousel" data-slide="next">
												<i class="fa fa-angle-right"></i>
											</a>
										</div>
										<!-- <div style="margin-top:10px;">
											<center>
												<a class="btn blue" href="#"><i class="fa fa-search"></i>&nbsp;&nbsp;上传图片</a>
											</center>
										</div>    -->             
									</div>
								</div>
								<div class="row">
									<div class="form-group">
										<label class="col-md-2 control-label">管理部门</label>
										<label class="col-md-4 control-label" style="text-align:left;">${wuZi.guanLiBM.depName }</label>
									</div>
								</div>
								<div class="row">
									<div class="form-group">
										<label class="col-md-2 control-label">生产厂家</label>
										<label class="col-md-8 control-label" style="text-align:left;">${wuZi.shengChanCJ }</label>
									</div>
								</div>
								<div class="row">
									<div class="form-group">
										<label class="col-md-2 control-label">供应商名称</label>
										<label class="col-md-8 control-label" style="text-align:left;">${wuZi.gongYingShangMC }</label>
									</div>
								</div>
								<div class="row">
									<div class="form-group">
										<label class="col-md-2 control-label">使用部门</label>
										<label class="col-md-4 control-label" style="text-align:left;">${wuZi.dep.depName }</label>
										<label class="col-md-2 control-label">使用人</label>
										<label class="col-md-4 control-label" style="text-align:left;">${wuZi.user.name }</label>
									</div>
								</div>
								<%--<div class="row">
									<div class="form-group">
										<label class="col-md-2 control-label">折旧月限</label>
										<label class="col-md-4 control-label" style="text-align:left;">${wuZi.zheJiuYX }</label>
										<label class="col-md-2 control-label">报废月限</label>
										<label class="col-md-4 control-label" style="text-align:left;">${wuZi.baoFeiYX }</label>
									</div>
								</div>
								<div class="row">
									<div class="form-group">
										<label class="col-md-2 control-label">已折旧月数</label>
										<label class="col-md-4 control-label" style="text-align:left;">${wuZi.zheJiuYS }</label>
										<label class="col-md-2 control-label">折旧方法</label>
										<label class="col-md-4 control-label" style="text-align:left;">${wuZi.zheJiuFS.zheJiuFSMC }</label>
									</div>
								</div>--%>
								<div class="row">
									<div class="form-group">
										<label class="col-md-2 control-label">使用状态</label>
										<label class="col-md-4 control-label" style="text-align:left;">${wuZi.shiYongZT.zhangTaiMC }</label>
										<label class="col-md-2 control-label">入库日期</label>
										<label class="col-md-4 control-label" style="text-align:left;"><fmt:formatDate value="${wuZi.ruKuRQ }" pattern="yyyy-MM-dd"/></label>
									</div>
								</div>
								<div class="row">
									<div class="form-group">
										<label class="col-md-2 control-label">开始使用日期</label>
										<label class="col-md-4 control-label" style="text-align:left;"><fmt:formatDate value="${wuZi.chuKuRQ }" pattern="yyyy-MM-dd"/></label>
										<label class="col-md-2 control-label">保修截止日期</label>
										<label class="col-md-4 control-label" style="text-align:left;"><fmt:formatDate value="${wuZi.baoXiuJZRQ }" pattern="yyyy-MM-dd"/></label>
									</div>
								</div>
								<div class="row">
									<div class="form-group">
										<label class="col-md-2 control-label">存放地点</label>
										<label class="col-md-9 control-label" style="text-align:left;">${wuZi.cunFangD }</label>
									</div>
								</div>
								<div class="row">
									<div class="form-group">
										<label class="col-md-2 control-label">备注</label>
										<label class="col-md-9 control-label" style="text-align:left;">${wuZi.beiZhu }</label>
									</div>
								</div>
							</form>
						</div>
					</div>
				</div>
			</div>

			<div class="row">
				<div class="col-md-12">
					<div class="tabbable tabbable-custom boxless">
						<ul class="nav nav-tabs">
							<%--<li class="active"><a href="#tab_0" data-toggle="tab">分摊部门</a></li>--%>
							<li class="active"><a href="#tab_1" data-toggle="tab">关联备品配件</a></li>
							<li><a href="#tab_2" data-toggle="tab">关联主设备</a></li>
							<shiro:hasAnyRoles name="固资管理员,财务"><li><a href="#tab_9" data-toggle="tab">采购记录</a></li></shiro:hasAnyRoles>
							<li><a href="#tab_3" data-toggle="tab">移交记录</a></li>
							<li><a href="#tab_7" data-toggle="tab">退还记录</a></li>
							<li><a href="#tab_4" data-toggle="tab">维修记录</a></li>
							<!-- <li><a href="#tab_8" data-toggle="tab">换货记录</a></li> -->
							<li><a href="#tab_8" data-toggle="tab">计提折旧</a></li>
							<li><a href="#tab_5" data-toggle="tab">修改记录</a></li>
							<li><a href="#tab_6" data-toggle="tab">报废记录</a></li>
						</ul>
						<div class="tab-content">
							<%--<div class="tab-pane active" id="tab_0">
								<div class="portlet box blue">
									<div class="portlet-title">
										<div class="caption"><i class="fa fa-reorder"></i>分摊部门</div>
										<div class="tools">
											<a href="javascript:;" class="collapse"></a>	
										</div>
									</div>
									<div class="portlet-body form">
										<!-- BEGIN FORM-->
										<form action="#" class="form-horizontal">
											<!-- <div class="form-actions top fluid ">
												<div style="text-align:right; margin-right:20px;">
													<button type="submit" class="btn green">打印条码</button>
													<button type="button" class="btn yellow">添加记录</button>
													<button type="button" class="btn blue">查询</button>
												</div>
											</div> -->
											<div class="form-body">
												<div class="portlet-body flip-scroll">
													<table class="table table-bordered table-striped table-condensed flip-content">
														<thead class="flip-content">
															<tr>																
																<th>分摊部门</th>
																<th>分摊比例</th>
																<th>开始日期</th>
																<th>结束日期</th>
																<th>分摊状态</th>							
															</tr>
														</thead>
														<tbody>
															<c:forEach items="${fenTanBMList }" var="u">
																<tr>
																	<td>${u.dep.depName }</td>
																	<td>${u.percent }%</td>
																	<td><fmt:formatDate value="${u.zengJiaRQ }" pattern="yyyy-MM-dd"/></td>
																	<td><fmt:formatDate value="${u.jianShaoRQ }" pattern="yyyy-MM-dd"/></td>
																	<td>
																		<c:choose>
																			<c:when test="${u.fenTanZT==1 }">
																				正在分摊
																			</c:when>
																			<c:otherwise>
																				结束分摊
																			</c:otherwise>
																		</c:choose>
																	</td>
																</tr>
															</c:forEach>															
														</tbody>
													</table>
												</div>
											</div>
										</form>
										<!-- END FORM--> 
									</div>
								</div>
							</div>--%>
							<div class="tab-pane active" id="tab_1">
								<div class="portlet box yellow">
									<div class="portlet-title">
										<div class="caption"><i class="fa fa-reorder"></i>关联备品配件</div>
										<div class="tools">
											<a href="javascript:;" class="collapse"></a>	
										</div>
									</div>
									<div class="portlet-body form">
										<!-- BEGIN FORM-->
										<form action="#" class="form-horizontal">
											<div class="form-actions top fluid ">
												<div style="text-align:right; margin-right:20px;">
													<button type="button" onclick="window.open('${ctx }/wuzi/guanLianPJ.do?pid=${wuZi.id}','blank')" class="btn blue">新增关联</button>
												</div>
											</div>
											<div class="form-body">
												<div class="portlet-body flip-scroll">
													<table class="table table-bordered table-striped table-condensed flip-content">
														<thead class="flip-content">
															<tr>
																<th>物资名称</th>
																<th>物资类别</th>
																<th>规格型号</th>
																<th>产品序列号</th>
																<th>操作</th>
															</tr>
														</thead>
														<tbody>
															<c:forEach items="${wuZi.child }" var="u">
																<tr>
																	<td>${u.wuZiMC }</td>
																	<td>${u.wuZiLB.leibieMC }</td>
																	<td>${u.guiGeXH }</td>
																	<td>${u.chanPinXLH }</td>
																	<td><a href="${ctx }/wuzi/wuZiDetail.do?id=${u.id}" target="_blank" class="btn default btn-xs green-stripe">物资详情</a>&nbsp;&nbsp;
																	<a onclick="shanChuGLPJ('${u.id}')" class="btn default btn-xs yellow-stripe">删除关联</a></td>
																</tr>
															</c:forEach>															
														</tbody>
													</table>
												</div>
											</div>
										</form>
										<!-- END FORM--> 
									</div>
								</div>
							</div>
							<div class="tab-pane " id="tab_2">
								<div class="portlet box green">
									<div class="portlet-title">
										<div class="caption"><i class="fa fa-reorder"></i>关联主设备</div>
										<div class="tools">
											<a href="javascript:;" class="collapse"></a>	
										</div>
									</div>
									<div class="portlet-body form">
										<!-- BEGIN FORM-->
										<form action="#" class="form-horizontal">
											<div class="form-actions top fluid ">
												<div style="text-align:right; margin-right:20px;">
													<c:if test="${empty wuZi.parent }"><button type="button" onclick="window.open('${ctx }/wuzi/guanLianZJ.do?cid=${wuZi.id}','blank')" class="btn blue">新增关联</button></c:if>
												</div>
											</div>
											<div class="form-body">
												<div class="portlet-body flip-scroll">
													<table class="table table-bordered table-striped table-condensed flip-content">
														<thead class="flip-content">
															<tr>
																<!-- <th>物料编码</th> -->
																<!-- <th>资产编码</th> -->
																<th>物资名称</th>
																<th>物资类别</th>
																<th>规格型号</th>
																<th>产品序列号</th>
																<th class="numeric">操作</th>
															</tr>
														</thead>
														<tbody>															
															<c:if test="${! empty wuZi.parent }">
																<tr>
																	
																	<td>${wuZi.parent.wuZiMC }</td>
																	<td>${wuZi.parent.wuZiLB.leibieMC }</td>
																	<td>${wuZi.parent.guiGeXH }</td>
																	<td>${wuZi.parent.chanPinXLH }</td>
																	<td><a href="${ctx }/wuzi/wuZiDetail.do?id=${wuZi.parent.id}" target="_blank" class="btn default btn-xs green-stripe">物资详情</a>&nbsp;&nbsp;
																	<a onclick="shanChuGLZJ('${u.id}')" class="btn default btn-xs yellow-stripe">删除关联</a></td>
																</tr>
															</c:if>
														</tbody>
													</table>
												</div>
											</div>
										</form>
										<!-- END FORM--> 
									</div>
								</div>
							</div>
							<shiro:hasAnyRoles name="固资管理员,财务">
							<div class="tab-pane " id="tab_9">
								<div class="portlet box green">
									<div class="portlet-title">
										<div class="caption"><i class="fa fa-reorder"></i>采购记录</div>
										<div class="tools">
											<a href="javascript:;" class="collapse"></a>	
										</div>
									</div>
									<div class="portlet-body form">
										<!-- BEGIN FORM-->
										<form action="#" class="form-horizontal">											
											<div class="form-body">
												<div class="portlet-body flip-scroll">
													<table class="table table-bordered table-striped table-condensed flip-content">
														<thead class="flip-content">
															<tr>
																<th>采购日期</th>
																<th>采购方式</th>
																<th>采购途径</th>
																<th>采买人</th>
																<th>详情</th>
															</tr>
														</thead>
														<tbody>
															<c:forEach items="${caiGouList }" var="u">
																<tr>
																	<td><fmt:formatDate value="${u.caiGouRQ }" pattern="yyyy-MM-dd"/></td>
																	<td>
																		<c:if test="${u.fangShi==1 }">招标</c:if>
																		<c:if test="${u.fangShi==2 }">询价</c:if>
																		<c:if test="${u.fangShi==3 }">比选</c:if>
																		<c:if test="${u.fangShi==4 }">竞争性谈判</c:if>
																	</td>
																	<td>${u.tuJing }</td>
																	<td>${u.user.name }</td>
																	<td><a class="btn default btn-xs green-stripe" href="${ctx }/wuzi/caiGouDetail.do?id=${u.id}" target="_blank">详情</a></td>												
																</tr>
															</c:forEach>
															
														</tbody>
													</table>
												</div>
											</div>
										</form>
										<!-- END FORM--> 
									</div>
								</div>
							</div>
							</shiro:hasAnyRoles>
							<div class="tab-pane " id="tab_3">
								<div class="portlet box green">
									<div class="portlet-title">
										<div class="caption"><i class="fa fa-reorder"></i>移交记录</div>
										<div class="tools">
											<a href="javascript:;" class="collapse"></a>	
										</div>
									</div>
									<div class="portlet-body form">
										<!-- BEGIN FORM-->
										<form action="#" class="form-horizontal">											
											<div class="form-body">
												<div class="portlet-body flip-scroll">
													<table class="table table-bordered table-striped table-condensed flip-content">
														<thead class="flip-content">
															<tr>
																<th>申请日期</th>
																<th>移交人</th>
																<th>移交原因</th>
																<th>接收部门</th>
																<th>接收人</th>
																<th>状态</th>
																<th>详情</th>
															</tr>
														</thead>
														<tbody>
															<c:forEach items="${yiJiaoList }" var="u">
																<tr>
																	<td><fmt:formatDate value="${u.shenQingRQ }" pattern="yyyy-MM-dd"/></td>
																	<td>${u.yiJiaoR.name }</td>
																	<td>${u.yiJiaoYY }</td>
																	<td>${u.jieShouDW.depName }</td>
																	<td>${u.jieShouR.name }</td>																	
																	<td>${u.huanJie.huanJieMC }</td>
																	<td><a class="btn default btn-xs green-stripe" href="${ctx }/wuzi/yiJiaoDetail.do?id=${u.id}" target="_blank">详情</a></td>												
																</tr>
															</c:forEach>
															
														</tbody>
													</table>
												</div>
											</div>
										</form>
										<!-- END FORM--> 
									</div>
								</div>
							</div>
							<div class="tab-pane " id="tab_7">
								<div class="portlet box green">
									<div class="portlet-title">
										<div class="caption"><i class="fa fa-reorder"></i>退还记录</div>
										<div class="tools">
											<a href="javascript:;" class="collapse"></a>	
										</div>
									</div>
									<div class="portlet-body form">
										<!-- BEGIN FORM-->
										<form action="#" class="form-horizontal">											
											<div class="form-body">
												<div class="portlet-body flip-scroll">
													<table class="table table-bordered table-striped table-condensed flip-content">
														<thead class="flip-content">
															<tr>
																<th>申请日期</th>
																<th>移交人</th>
																<th>退还原因</th>																
																<th>状态</th>
																<th>详情</th>
															</tr>
														</thead>
														<tbody>
															<c:forEach items="${tuiHuanList }" var="u">
																<tr>
																	<td><fmt:formatDate value="${u.shenQingRQ }" pattern="yyyy-MM-dd"/></td>
																	<td>${u.yiJiaoR.name }</td>
																	<td>${u.yiJiaoYY }</td>																																
																	<td>${u.huanJie.huanJieMC }</td>
																	<td><a class="btn default btn-xs green-stripe" href="${ctx }/wuzi/tuiHuiDetail.do?id=${u.id}" target="_blank">详情</a></td>												
																</tr>
															</c:forEach>
															
														</tbody>
													</table>
												</div>
											</div>
										</form>
										<!-- END FORM--> 
									</div>
								</div>
							</div>
							<%-- <div class="tab-pane " id="tab_8">
								<div class="portlet box green">
									<div class="portlet-title">
										<div class="caption"><i class="fa fa-reorder"></i>换货记录</div>
										<div class="tools">
											<a href="javascript:;" class="collapse"></a>	
										</div>
									</div>
									<div class="portlet-body form">
										<!-- BEGIN FORM-->
										<form action="#" class="form-horizontal">											
											<div class="form-body">
												<div class="portlet-body flip-scroll">
													<table class="table table-bordered table-striped table-condensed flip-content">
														<thead class="flip-content">
															<tr>
																<th>申请日期</th>
																<th>申请人</th>
																<th>换货类型</th>
																<th>原产品序列号</th>
																<th>新产品序列号</th>
																<th>换货状态</th>
																<th>详情</th>
															</tr>
														</thead>
														<tbody>
															<c:forEach items="${tuiHuanList }" var="u">
																<tr>
																	<td><fmt:formatDate value="${u.shenQingRQ }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
																	<td>${u.user.name }</td>
																	<td>
																		<c:choose>
																			<c:when test="${u.liuChengLX==2 }">
																				维修换货
																			</c:when>
																			<c:when test="${u.liuChengLX==1 }">
																				采购换货
																			</c:when>
																		</c:choose>
																	</td>
																	<td>${u.yuanChanPinXLH }</td>																																
																	<td>${u.xinChanPinXLH }</td>
																	<td>${u.huanJie.huanJieMC }</td>																	
																	<td>
																		<a class="btn default btn-xs green-stripe" href="${ctx }/wuzi/huanHuoDetail.do?id=${u.id}" target="_blank">换货详情</a>
																		<a class="btn default btn-xs green-stripe" href="${ctx }/wuzi/huanHuoDetail.do?id=${u.id}" target="_blank">换货详情</a>
																	</td>												
																</tr>
															</c:forEach>
															
														</tbody>
													</table>
												</div>
											</div>
										</form>
										<!-- END FORM--> 
									</div>
								</div>
							</div> --%>
							<div class="tab-pane" id="tab_8">
								<div class="portlet box green">
									<div class="portlet-title">
										<div class="caption"><i class="fa fa-reorder"></i>计提折旧</div>
										<div class="tools">
											<a href="javascript:;" class="collapse"></a>	
										</div>
									</div>
									<div class="portlet-body form">										
										<form action="#" class="form-horizontal">											
											<div class="form-body">
												<div class="portlet-body flip-scroll">
													<table class="table table-bordered table-striped table-condensed flip-content">
														<thead class="flip-content">
															<tr>
																<th>记账日期</th>
																<th>记账部门</th>
																<th>折旧金额</th>
																<th>分摊比例</td>
															</tr>
														</thead>
														<tbody>
															<c:forEach items="${zheJiuJL }" var="u">
																<tr>
																	<td><fmt:formatDate value="${u.zheJiuRQ }" pattern="yyyy-MM-dd"/></td>
																	<td>${u.fenTan.dep.depName }</td>
																	<%-- <td>${u.zheJiuJE }</td> --%>
																	<td><fmt:formatNumber type="number" value="${u.zheJiuJE }" pattern="0.00" maxFractionDigits="2"/></td>
																	<td>${u.fenTan.percent }%</td>
																</tr>
															</c:forEach>
														</tbody>
													</table>
												</div>
											</div>
										</form>										
									</div>
								</div>
							</div>
							<div class="tab-pane " id="tab_4">
								<div class="portlet box green">
									<div class="portlet-title">
										<div class="caption"><i class="fa fa-reorder"></i>维修记录</div>
										<div class="tools">
											<a href="javascript:;" class="collapse"></a>	
										</div>
									</div>
									<div class="portlet-body form">										
										<form action="#" class="form-horizontal">
											
											<div class="form-body">
												<div class="portlet-body flip-scroll">
													<table class="table table-bordered table-striped table-condensed flip-content">
														<thead class="flip-content">
															<tr>
																<th>申请日期</th>									
																<th>申请人</th>
																<th>维修原因</th>
																<th>维修状态</th>
																<th>维修费用</th>
																<th>详情</th>
															</tr>
														</thead>
														<tbody>
															<c:forEach items="${weiXiuJL }" var="u">
																<tr>
																	<td><fmt:formatDate value="${u.shenQingRQ }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
																	<td>${u.user.name }</td>
																	<td>${u.weiXiuYY }</td>																																
																	<td>${u.huanJie.huanJieMC }</td>
																	<td>${u.feiYong }</td>
																	<td><a class="btn default btn-xs green-stripe" href="${ctx }/wuzi/weiXiuDetail.do?id=${u.id}" target="_blank">详情</a></td>																	
																</tr>
															</c:forEach>
														</tbody>
													</table>
												</div>
											</div>
										</form>										
									</div>
								</div>
							</div>
							<div class="tab-pane " id="tab_5">
								<div class="portlet box green">
									<div class="portlet-title">
										<div class="caption"><i class="fa fa-reorder"></i>修改记录</div>
										<div class="tools">
											<a href="javascript:;" class="collapse"></a>	
										</div>
									</div>
									<div class="portlet-body form">
										<!-- BEGIN FORM-->
										<form action="#" class="form-horizontal">
											
											<div class="form-body">
												<div class="portlet-body flip-scroll">
													<table class="table table-bordered table-striped table-condensed flip-content">
														<thead class="flip-content">
															<tr>
																<th>修改日期</th>
																<th>修改项</th>
																<th>修改人</th>																
																<th>修改项原值</th>
																<th>修改项新值</th>																
															</tr>
														</thead>
														<tbody>
															<c:forEach items="${xiuGaiJL }" var="u">
																<tr>
																	<td><fmt:formatDate value="${u.xiuGaiRQ }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
																	<td>${u.xiuGaiXM }</td>
																	<td>${u.user.name }</td>																																
																	<td>${u.yuanZhi }</td>
																	<td>${u.xinZhi }</td>																	
																</tr>
															</c:forEach>															
														</tbody>
													</table>
												</div>
											</div>
										</form>
										<!-- END FORM--> 
									</div>
								</div>
							</div>
							<div class="tab-pane " id="tab_6">
								<div class="portlet box green">
									<div class="portlet-title">
										<div class="caption"><i class="fa fa-reorder"></i>报废记录</div>
										<div class="tools">
											<a href="javascript:;" class="collapse"></a>	
										</div>
									</div>
									<div class="portlet-body form">
										<!-- BEGIN FORM-->
										<form action="#" class="form-horizontal">
											
											<div class="form-body">
												<div class="portlet-body flip-scroll">
													<table class="table table-bordered table-striped table-condensed flip-content">
														<thead class="flip-content">															
															<tr>
																<th>申请日期</th>
																<th>申请人</th>
																<th>报废原因</th>
																<th>报废类型</th>
																<th>报废流程状态</th>
																<th>处理方式</th>
																<th>回收金额</th>													
																<th>详情</th>
															</tr>
														</thead>
														<tbody>
															<c:forEach items="${baoFeiJL }" var="u">
															<tr>
																<td><fmt:formatDate value="${u.shenQingRQ }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
																<td>${u.user.name }</td>
																<td>${u.baoFeiYY }</td>
																<td>
																	<c:choose>
																		<c:when test="${u.baoFeiLX==1 }">
																			到年限
																		</c:when>
																		<c:when test="${u.baoFeiLX==2 }">
																			损坏不可用
																		</c:when>
																	</c:choose>
																</td>
																<td>${u.huanJie.huanJieMC }</td>
																<td>${u.chuLiFS }</td>
																<td>${u.huiShouJE }</td>
																<td><a class="btn default btn-xs green-stripe" href="${ctx }/wuzi/baoFeiDetail.do?id=${u.id}" target="_blank">详情</a></td>
															</tr>
															</c:forEach>
															<c:forEach items="${diuShiJL }" var="u">
																<tr>
																	<td><fmt:formatDate value="${u.wanChengRQ }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
																	<td>${u.user.name }</td>
																	<td>丢失</td>
																	<td>丢失</td>
																	<td>${u.huanJie.huanJieMC }</td>
																	<td>赔偿</td>
																	<td>${u.peiChangJE }</td>
																	<td></td>
																</tr>
															</c:forEach>
														</tbody>
													</table>
												</div>
											</div>
										</form>
										<!-- END FORM--> 
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<!-- END PAGE CONTENT-->
		</div>
		<!-- END PAGE -->
	</div>
	<!-- END CONTAINER -->
	<!-- BEGIN FOOTER -->
	<%@include file="../include/footer.jsp" %>
	<!-- END FOOTER -->
	<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
	<!-- BEGIN CORE PLUGINS -->   
	<!--[if lt IE 9]>
	<script src="${ctx}/assets/plugins/respond.min.js"></script>
	<script src="${ctx}/assets/plugins/excanvas.min.js"></script> 
	<![endif]-->   
	<script src="${ctx}/assets/plugins/jquery-1.10.2.min.js" type="text/javascript"></script>
	<script src="${ctx}/assets/plugins/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>    
	<script src="${ctx}/assets/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
	<script src="${ctx}/assets/plugins/bootstrap-hover-dropdown/twitter-bootstrap-hover-dropdown.min.js" type="text/javascript" ></script>
	<script src="${ctx}/assets/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
	<script src="${ctx}/assets/plugins/jquery.blockui.min.js" type="text/javascript"></script>  
	<script src="${ctx}/assets/plugins/jquery.cookie.min.js" type="text/javascript"></script>
	<script src="${ctx}/assets/plugins/uniform/jquery.uniform.min.js" type="text/javascript" ></script>

	<script src="${ctx}/assets/scripts/form-components.js"></script>
	<script type="text/javascript" src="${ctx}/assets/plugins/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
	<script type="text/javascript" src="${ctx}/assets/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js"></script>
	<script type="text/javascript" src="${ctx}/assets/plugins/clockface/js/clockface.js"></script>
	<script type="text/javascript" src="${ctx}/assets/plugins/bootstrap-daterangepicker/moment.min.js"></script>
	<script type="text/javascript" src="${ctx}/assets/plugins/bootstrap-daterangepicker/daterangepicker.js"></script>
	<script type="text/javascript" src="${ctx}/frontend/assets/plugins/revolution_slider/rs-plugin/js/jquery.themepunch.plugins.min.js"></script>
    <script type="text/javascript" src="${ctx}/frontend/assets/plugins/revolution_slider/rs-plugin/js/jquery.themepunch.revolution.min.js"></script> 
    <script type="text/javascript" src="${ctx}/frontend/assets/plugins/bxslider/jquery.bxslider.min.js"></script>    
    <script src="${ctx}/frontend/assets/scripts/index.js"></script>
	<!-- END CORE PLUGINS -->
	<script src="${ctx}/assets/scripts/app.js"></script>
	<shiro:hasRole name="固资管理员">
	<script language="javascript" src="${ctx }/lodop/LodopFuncs.js"></script>
	<object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0> 
		<embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0 pluginspage="install_lodop32.exe"></embed>
	</object>
	</shiro:hasRole>
	<script>
		jQuery(document).ready(function() {       
		   // initiate layout and plugins
		   App.init();		   
		   /* App.initBxSlider();
           Index.initRevolutionSlider();
		   FormComponents.init(); */

		});
		<shiro:hasRole name="固资管理员">
		var LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
		var iRadioValue=1;
		function check(thisValue){
			 iRadioValue=thisValue;
		}		
		function PreviewMyBarCode() {
			LODOP=getLodop();
			LODOP.PRINT_INIT("打印控件功能演示_Lodop功能_打印条码");			
			//LODOP.ADD_PRINT_IMAGE(-24,25,201,75,"${ctx}/cpecc.jpg");
			LODOP.SET_PRINT_PAGESIZE (1,"60mm","40mm","");
			//LODOP.ADD_PRINT_BARCODE("5mm","5mm","50mm","30mm","128A","${wuZi.ziChanBH }");
			LODOP.ADD_PRINT_BARCODE("5mm","5mm","90%","80%","128A","${wuZi.ziChanBH }");
			//LODOP.ADD_PRINT_BARCODE(56,10,290,47,"128A","${wuZi.ziChanBH }");			
			LODOP.PREVIEW();
		};
		$('#daYinTiaoMa').bind("click",function(){
			PreviewMyBarCode();
		});
		</shiro:hasRole>
		var shanChuGLPJ=function(id){
			$.ajax({
				type:"POST",
				data:{					
					'cid':id
				},
				url:"${ctx}/wuzi/shanChuGLPJ.do",
				success:function(data){
					window.location.reload();
				}
			});
		}		
		
		var shanChuGLZJ=function(id){
			$.ajax({
				type:"POST",
				data:{
					"cid":"${wuZi.id}"
				},
				url:"${ctx}/wuzi/shanChuGLZJ.do",
				success:function(data){
					window.location.reload();
				}
			});
		}
	</script>
</body>
<!-- END BODY -->
</html>